---
image: /generated/articles-docs-media-parser-node-reader.png
id: node-reader
title: nodeReader
slug: /media-parser/node-reader
crumb: '@remotion/media-parser'
---

:::warning
[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!
:::

A [reader](/docs/media-parser/readers) for `@remotion/media-parser` that reads from the local file system using Node.js `fs` module.  
It also works with Bun.

## Example

```tsx twoslash title="Reading a local file"
import {parseMedia} from '@remotion/media-parser';
import {nodeReader} from '@remotion/media-parser/node';

const result = await parseMedia({
  src: '/Users/jonnyburger/Downloads/my-video.mp4',
  fields: {
    durationInSeconds: true,
    dimensions: true,
  },
  reader: nodeReader,
});
```

## See also

- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/media-parser/src/node.ts)
- [Readers](/docs/media-parser/readers)
